<#-- 话题内容 空白页 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh-CN">
<head>
<base href="${baseURL}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<#-- 获取令牌 -->
<meta name="csrfToken" content="${token}"/>

<@object action="${topicRelated_topicContent_1}" topicId="${url_topicId}"> 
	<#assign topic = topicRelated_topicContent_entityBean>
</@object> 

<title><#if topic != null && topic?? >${topic.title}</#if> - ${title}</title>
<link rel="shortcut icon" type="image/x-icon" href="${baseURL}${commonPath}images/favicon.ico" media="screen" />
<link href="${commonPath}css/common.css?12d" rel="stylesheet" type="text/css" />
<!--[if (IE 6)|(IE 7)|(IE 8)]>
<script type="text/javascript" src="${commonPath}js/css3pie/PIE_IE678.js"></script> 
<![endif]-->
<script type="text/javascript" src="${commonPath}js/tool.js" language="javascript"></script>
<script type="text/javascript" src="${commonPath}js/ajax.js" language="javascript" ></script>
<script type="text/javascript" src="${commonPath}js/json2.js" language="javascript" ></script>
<script type="text/javascript" src="${commonPath}js/jquery/jquery.min.js" language="javascript"></script>
<link href="${commonPath}js/kindeditor/themes/default/default.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="${commonPath}js/kindeditor/kindeditor-min.js" language="javascript"></script>
<script type="text/javascript" src="${commonPath}js/kindeditor/lang/zh-CN.js" language="javascript"></script>
<link href="${commonPath}js/layer/skin/default/layer.css"  type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="${commonPath}js/layer/layer.js" language="javascript"></script>
<link rel="stylesheet" href="${commonPath}js/syntaxhighlighter/styles/shCoreDefault.css"  type="text/css" />
<script language="JavaScript" src="${commonPath}js/syntaxhighlighter/scripts/shCore.js" type="text/javascript"></script>
<script language="javascript" src="${commonPath}js/syntaxhighlighter/scripts/shBrushXml.js" type="text/javascript" ></script>
<script language="javascript" src="${commonPath}js/syntaxhighlighter/scripts/shBrushJScript.js" type="text/javascript" ></script>
<script language="javascript" src="${commonPath}js/syntaxhighlighter/scripts/shBrushCss.js" type="text/javascript"></script>
<script language="javascript" src="${commonPath}js/syntaxhighlighter/scripts/shBrushJava.js" type="text/javascript"></script>


<!--[if (IE 6)|(IE 7)|(IE 8)]>
<script type="text/javascript">
	//让ie6/ie7/ie8支持自定义标签。这段代码必须放在页面头部<head>标签内
	(function() {
		var a = ['hide'/* 其他HTML5元素 */];
		for (var i = 0, j = a.length; i < j; i++) {
			document.createElement(a[i]);
		}	
	})();
</script>
<![endif]-->

</head>
<body>
<#-- 引入页头 -->
<@include action="${newPublic_2}"/>
<div class="skeleton">
	<div class="main wrap backgroundModule" >
		<div class="leftColumn_article">
			<#if topic != null && topic?? >
				<div class="articleModule" >
				
					<div class="tab">
						<a href="?tagId=${topic.tagId}"class="tab">${topic.tagName}</a>
					</div>
				
					<div class="articleBox">
						<h1>${topic.title}</h1>
						<!-- topicId属性用来支持JS获取隐藏内容 -->
						<div class="topicContent" topicId="${topic.id}">
							<#noescape>${topic.content}</#noescape>
							
							
							<!-- 
								<div class="hide-box">	
									<div class="background-image"></div>
									
									<div class="background-prompt">此处内容已被隐藏，输入密码可见</div>			
									<div class="input-box">
										<input type="password" id="hide_password" class="text" maxlength="30"  placeholder="密码" value="">
										<input type="button" value="提交" class="button" onclick="search();return false">
									</div>
									-->
									<!-- 
									<div class="background-prompt">此处内容已被隐藏，评论话题可见</div>
									-->
									<!--  
									<div class="background-prompt">此处内容已被隐藏，达到‘新手上路’等级可见</div>			
									-->
									<!--  
									<div class="background-prompt">此处内容已被隐藏，需要 50 积分购买可见</div>			
									<div class="submit-box">
										<input type="button" value="立即购买" class="button" onclick="search();return false">
									</div>
									-->
									<!--  
									<div class="background-prompt">此处内容已被隐藏，需要 50 人民币购买可见</div>			
									<div class="submit-box">
										<input type="button" value="立即购买" class="button" onclick="search();return false">
									</div>
									-->
									
									<!-- 
								</div>-->
								
								
								
						
						</div>
						
						<div class="favorite-formModule">
							<#--加入收藏夹-->
							<@include action="${favoriteRelated_addFavorite_1}"/>
							
							<#--给话题点赞-->
							<@include action="${likeRelated_addLike_1}"/>
	
						</div>
						<h2></h2>
						
					</div>
				</div>
				
				<#-- 引入话题取消隐藏 本方法处理话题隐藏内容 -->
				<@include action="${topicRelated_topicUnhide_1}"/> 
				
				
				<#-- 引入评论列表 -->
				<@include action="${topicRelated_comment_2}"/> 
				 
				 
				<#if topic.allow == true><#-- 允许评论 -->
					<#-- 引入添加评论 -->
					<@include action="${topicRelated_addComment_1}"/> 
				<#else><#-- 不允许评论 -->
					<div class="addCommentModule" >
						<div class="respond">
							<p style="font-size:13px;padding:8px;text-align:center;background:#eee;overflow:hidden">
								评论已关闭
							</p>
						</div>
					</div>
				</#if>
				 
				
				
			</#if>
		</div>
		<#if topic != null && topic?? >
			<div class="articleInfoModule">
				<div class="user">
					<div class="author">
						<a href="user/control/home?userName=${topic.userName}" >
							<#if topic.avatarName != null>
								<img src="${topic.avatarPath}${topic.avatarName}" >
							<#else>
								<img src="${commonPath}images/min_avata.png" >
							</#if> 
						</a>
						<span>
							<a href="user/control/home?userName=${topic.userName}">
								${(topic.nickname != null && topic.nickname??) ?string(topic.nickname , topic.userName)}
							</a>
						</span>
						<div class="role">
						<#list topic.userRoleNameList as roleName>
							<i class="userRoleName">${roleName}</i>				
						</#list>
						</div>
					</div>
					<div class="userInfo">
						<span>${topic.postTime}</span>
						<span>${topic.viewTotal} 次浏览</span>
						<span>${topic.commentTotal} 个评论</span>
					</div>
				</div>
			</div>
			
			<!-- 相似话题 -->
			<@include action="${topicRelated_likeTopic_1}" topicId="${topic.id}"/>
			
		</#if>
	
	</div>
</div>
<#-- 引入页脚 -->
<@include action="${newPublic_3}"/>
</body>
<!-- 代码高亮显示 -->
<script type="text/javascript">
	$(".lang-xml").each(function(index, element) {
		$(this).attr("class","brush: xml");
	});
	$(".lang-css").each(function(index, element) {
		$(this).attr("class","brush: css");
	});
	$(".lang-html").each(function(index, element) {
		$(this).attr("class","brush: xml");
	});
	$(".lang-js").each(function(index, element) {
		$(this).attr("class","brush: js");
	});
	$(".lang-java").each(function(index, element) {
		$(this).attr("class","brush: java");
	});
	SyntaxHighlighter.all();
	SyntaxHighlighter.defaults['toolbar'] = false;//去掉右上角问号图标
	
</script>
</html>
